package com.karry.yl.service.baseinfo;


import com.baomidou.mybatisplus.plugins.Page;
import com.karry.commons.base.SuperService;
import com.karry.yl.domain.baseinfo.Room;

import java.util.List;

public interface RoomService extends SuperService<Room> {

    /**
     * 1
     *
     * @param page
     * @param orgId
     * @param buildingId
     * @param floor
     * @return
     */
    Page<Room> selectRoomPage(Page<Room> page, Long orgId, Long buildingId, int floor);

    /**
     * 2
     *
     * @param floor
     * @param roomNum
     * @param buildingId
     * @param orgId
     */
    void saveLsit(Integer[] floor, Integer[] roomNum, Long buildingId, Long orgId);

    /*
     * 通过楼宇id查询盖楼的所有楼层
     * **/
    List<Integer> selectRooms(Room room);

    /*
     *查询所有楼宇，楼层，房间
     * **/
    List<Room> selectRoomsList(Room room);

    /*
     *根据楼宇id，楼层查询该层房间
     * **/
    List<Room> selectRoomListByBuildFloor(Room room);
}
